package com.aiyige.model.response;

import android.text.TextUtils;

import com.aiyige.MyApp;
import com.aiyige.R;

/**
 * Created by zhuyakun on 2017/10/18.
 */

public class OrderDetailResponse extends BaseResponse {
    private Data data;

    public void setData(Data data) {
        this.data = data;
    }

    public Data getData() {
        return data;
    }

    public static class Data {
        private String user;
        private String mobile;
        private String code;
        private String goodsType;
        private int status;
        private String cover;
        private String title;
        private long createTime;
        private long payTime;
        private int payMethod;
        private String payCode;
        private String sellerName;
        private String sellerId;
        private int sellerLevel;
        private String sellerAvatar;
        private float amount;
        private float payAmount;
        private int videoStages;
        private String source;
        private String sourceUrl;
        private String router;
        private String sellerMobile;

        public String getSellerMobile() {
            return sellerMobile;
        }

        public void setSellerMobile(String sellerMobile) {
            this.sellerMobile = sellerMobile;
        }

        public int getNum() {
            return num;
        }

        public void setNum(int num) {
            this.num = num;
        }

        private int num = 1;

        public void setUser(String user) {
            this.user = user;
        }

        public String getUser() {
            return TextUtils.isEmpty(user) ? "" : user;
        }

        public void setMobile(String mobile) {
            this.mobile = mobile;
        }

        public String getMobile() {
            return TextUtils.isEmpty(mobile) ? "" : mobile;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getCode() {
            return code;
        }

        public void setGoodsType(String goodsType) {
            this.goodsType = goodsType;
        }

        public String getGoodsType() {
            return goodsType;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public int getStatus() {
            return status;
        }

        public void setCover(String cover) {
            this.cover = cover;
        }

        public String getCover() {
            return cover;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getTitle() {
            return TextUtils.isEmpty(title) ? "" : title;
        }

        public void setCreateTime(int createTime) {
            this.createTime = createTime;
        }

        public long getCreateTime() {
            return createTime;
        }

        public void setPayTime(long payTime) {
            this.payTime = payTime;
        }

        public long getPayTime() {
            return payTime;
        }

        public void setPayMethod(int payMethod) {
            this.payMethod = payMethod;
        }

        public int getPayMethod() {
            return payMethod;
        }

        public String getPayMethodString() {
            if (payMethod == 1) {
                return MyApp.getAppContext().getResources().getString(R.string.alipay);
            } else if (payMethod == 2) {
                return MyApp.getAppContext().getResources().getString(R.string.wechat);
            }
            return "";
        }

        public void setPayCode(String payCode) {
            this.payCode = payCode;
        }

        public String getPayCode() {
            return TextUtils.isEmpty(payCode) ? "" : payCode;
        }

        public void setSellerName(String sellerName) {
            this.sellerName = sellerName;
        }

        public String getSellerName() {
            return TextUtils.isEmpty(sellerName) ? "" : sellerName;
        }

        public void setSellerId(String sellerId) {
            this.sellerId = sellerId;
        }

        public String getSellerId() {
            return sellerId;
        }

        public void setSellerLevel(int sellerLevel) {
            this.sellerLevel = sellerLevel;
        }

        public int getSellerLevel() {
            return sellerLevel;
        }

        public void setSellerAvatar(String sellerAvatar) {
            this.sellerAvatar = sellerAvatar;
        }

        public String getSellerAvatar() {
            return TextUtils.isEmpty(sellerAvatar) ? "" : sellerAvatar;
        }

        public void setAmount(float amount) {
            this.amount = amount;
        }

        public float getAmount() {
            return amount;
        }

        public void setPayAmount(float payAmount) {
            this.payAmount = payAmount;
        }

        public float getPayAmount() {
            return payAmount;
        }

        public void setVideoStages(int videoStages) {
            this.videoStages = videoStages;
        }

        public int getVideoStages() {
            return videoStages;
        }

        public void setSource(String source) {
            this.source = source;
        }

        public String getSource() {
            return TextUtils.isEmpty(source) ? "" : source;
        }

        public void setSourceUrl(String sourceUrl) {
            this.sourceUrl = sourceUrl;
        }

        public String getSourceUrl() {
            return TextUtils.isEmpty(sourceUrl) ? "" : sourceUrl;
        }

        public void setRouter(String router) {
            this.router = router;
        }

        public String getRouter() {
            return TextUtils.isEmpty(router) ? "" : router;
        }
    }
}

